﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BaiTu.QueueService
{
    [AttributeUsage(AttributeTargets.Class)]
    public class QueueAttribute : Attribute
    {
        public string QueueName { get; private set; }

        public QueueAttribute(string queueName)
        {
            if (string.IsNullOrEmpty(queueName))
                throw new ArgumentNullException("queueName");

            this.QueueName = queueName;
        }
    }
}
